interpreter directive造句
例句與造句
- Dennis Ritchie introduced kernel support for interpreter directives in January 1980, for Version 8 Unix, with the following description:
- As a general convention, every PostScript program should start with the characters " % ! PS " as an interpreter directive so that all devices will properly interpret it as PostScript.
- Without extensions, a program always has the same extension-less name, with only the interpreter directive and / or magic number changing, and references to the program from other programs remain valid.
- Kernel support for interpreter directives spread to other versions of Unix, and one modern implementation can be seen in the Linux kernel source in " fs / binfmt _ script . c ".
- In UNIX scripting ( typically for UNIX shell or Perl ), " ! " is usually used after a " # " in the first line of a script, the interpreter directive, to tell the OS what program to use to run the script.
- It's difficult to find interpreter directive in a sentence. 用interpreter directive造句挺難的
- As a caveat, though, some early versions of kernel support limited the length of the interpreter directive to roughly 32 characters ( just 16 in its first implementation ), would fail to split the interpreter name from any parameters in the directive, or had other quirks.
- Note that, even in systems with full kernel support for the " # ! " magic number, some scripts lacking interpreter directives ( although usually still requiring execute permission ) are still runnable by virtue of the legacy script handling of the Bourne shell, still present in many of its modern descendants.
- On systems with interpreter directives, including virtually all versions of Unix, command name extensions have no special significance, and are by standard practice not used, since the primary method to set interpreters for scripts is to start them with a single line specifying the interpreter to use ( which could be viewed as a degenerate resource fork ).